using System;
using System.Collections.Generic;
using System.Text;

namespace BAFIRCSharp
{
    public struct ChatMessage
    {
        public ChatMessageType Type;
        public DateTime Timestamp;
        public SenderInf Sender;
        public object Arg1;
        public object Arg2;

        public enum ChatMessageType
        {
            PRIVMSG,
            NOTICE,
            TOPIC,
            MODE,
            JOIN,
            PART,
            KICK,
            QUIT,
            KILL
        }

        public ChatMessage(ChatMessageType Type, DateTime Timestamp, SenderInf Sender, object Arg1)
        {
            this.Type = Type;
            this.Timestamp = Timestamp;
            this.Sender = Sender;
            this.Arg1 = Arg1;
            this.Arg2 = "";
        }

        public ChatMessage(ChatMessageType Type, DateTime Timestamp, SenderInf Sender, object Arg1, object Arg2)
        {
            this.Type = Type;
            this.Timestamp = Timestamp;
            this.Sender = Sender;
            this.Arg1 = Arg1;
            this.Arg2 = Arg2;
        }
    }
}
